<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>表单设计器</title>
    <link rel="stylesheet" href="./layui/css/layui.css"/>
    <style>
        html,body{
            height: 100%;
        }
    </style>
</head>
<body>

<div style="height: 100%; width: 100%;" id="formdesigner"></div>

<script type="text/javascript" src="./layui/layui.js"></script>
<script>
    layui.config(
        {base: './zpo/modules/'}
    ).use(['layer', 'formDesigner'], function () {
        var formDesigner = layui.formDesigner;
        var render = formDesigner.render({
            elem: '#formdesigner'
            ,showHeader: true
            ,callback:function (data) {
                console.log(data);
            }
        });
    });
</script>
</body>
</html>